package CommonInterface;

public class Student {
    public String name;
    public int age;

    public Student() {
    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }


    public String toString() {
        return "Student{name = " + name + '\''+", age = " + age + "}";
    }

    public int compareTo(Student str){
        return this.name.compareTo(str.name);
    }
}
